package org.jeecg.modules.zhima.portal.service;

import org.jeecg.modules.zhima.admin.entity.ZmGamePlayer;
import org.jeecg.modules.zhima.portal.domain.GamePlayer;

import java.util.List;

public interface IGamePlayerService {

    ZmGamePlayer editPlayerScore(GamePlayer zmGamePlayer);

    GamePlayer getOnePlayerId(String gameId, String playerId);

    ZmGamePlayer getOneByUserId(String gameId, String userId);

    /**
     * 获取赛事已报名选手列表，按score倒叙排名
     * @param gameId
     * @return
     */
    List<GamePlayer> listJoiners(String gameId);

    boolean removeById(String id);
}
